//
//  roliingCell.m
//  基本框架
//
//  Created by runone02 on 2018/8/17.
//  Copyright © 2018年 liqiyun. All rights reserved.
//

#import "roliingCell.h"

@implementation roliingCell
- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        [self setupUI];
    }
    return self;
}

- (void)setupUI{
    self.NameLabel = [[UILabel alloc] init];
    self.NameLabel.textColor = COLOR_BLACK;
    self.NameLabel.textAlignment = NSTextAlignmentCenter;
    self.NameLabel.backgroundColor = [UIColor lightGrayColor];
    
    self.NameLabel.font = TITLE_FONT(20);
    [self addSubview:self.NameLabel];

    [self.NameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(self).with.offset(-10);
        make.centerX.mas_equalTo(self);
        make.left.mas_equalTo(self);
        make.right.mas_equalTo(self);

    }];
}
@end
